<?php include_once ROOT . '/views/layouts/header.php'; ?>

    <div class="grid grid-cols-3 gap-4">
        <?php foreach ($productList as $product): ?>


            <div class="mx-auto">
                <img src="data:image/jpeg;base64,<?= base64_encode($product['img']) ?>">
                <div class="w-full text-right">
                    <a href="/product/<?= $product['id'] ?>" class="font-bold"><?= $product['price'] ?>Р</a>
                </div>
            </div>


        <?php endforeach; ?>
    </div>

<?php include_once ROOT . '/views/layouts/footer.php'; ?>